<!--用css的odd,even效果來定義排版-->
<table border="0" cellspacing="0" style="color:#000;" class="course-table">
  <tr valign="bottom">
  <tr>
    <td width="80" align="center" valign="middle" bgcolor="#006666" style="color:#FFF;><font size="3" ><div align="left"><b>ClassCode</b></font></div></td>
    <td align="center" valign="middle" bgcolor="#006666" style="color:#FFF;><font size="3" ><div align="left"><b>Subject</b></font></div></td>
    <td width="54" align="center" valign="middle" bgcolor="#006666" style="color:#FFF;><font size="3" ><div align="left"><b>Credits</b></font></div></td>
    <td width="87" align="center" valign="middle" bgcolor="#006666" style="color:#FFF;><font size="3" ><b>Time</b></font>
      <div align="left"></div></td>
    <td width="127" align="center" valign="middle" bgcolor="#006666" style="color:#FFF;><font size="3" ><div align="left"><b>Instructor</b></font></div></td>
    <td width="63" align="center" valign="middle" bgcolor="#006666" style="color:#FFF;><span lang="EN-US"><div align="left"><strong>Syllabi</span></strong></strong></div></td>
  </tr>
<?php
  include 'MyAPI/it.nccu.inc';
  $courses = IT_readCSV('course.csv');
  foreach($courses as $course){
?>
<tr valign="bottom">
    <td valign="middle"><?php echo $course[2]?><br></td>
    <td align="center" valign="middle"><?php echo $course[0]?><br>
      <?php echo $course[1]?></td>
    <td width="54" align="center" valign="middle"><?php echo $course[3]?></td>
    <td valign="middle"><div align="center"><?php echo $course[4]?><br>
        <?php echo $course[5]?></div></td>
    <td align="center" valign="middle"><p><?php echo $course[6]?><br><?php echo $course[7]?></p></td>
    <td align="center" valign="middle"><a target="_blank" href="http://140.119.82.166/iep2012/sites/all/course/"><img src="http://140.119.82.166/iep2012/sites/all/images/logo/pdf_logo2.JPG" alt="" width="21" height="20" border="0"></a></td>
  </tr>
<?php }
?>
</table>
